package com.heiketu.controllers;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HandlerControl {

    /*@PostMapping(value = "/submit", produces = "text/plain;chaset=utf-8")
    public String submit(){
        return "";
    }*/

    @PostMapping(value = "/success",produces = "text/plain;charset=utf-8" )
    public String login(){
        return "登录成功";
    }

    // p1资源
    @GetMapping(value = "/r/p1",produces = "text/plain;charset=utf-8")
    public String p1(){
        return "访问资源p1";
    }

    // p2资源
    @GetMapping(value = "/r/p2",produces = "text/plain;charset=utf-8")
    public String p2(){
        return "访问资源p2";
    }

}
